package com.hzlj.position.locate.dao;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fz.common.base.converter.QueryWrapperConverterPlus;
import com.fz.common.base.dto.PageParamDTO;
import com.fz.common.base.dto.QueryPageResultDTO;
import com.hzlj.position.locate.common.dto.abnNoRecord.AbnNoRecordListDTO;
import com.hzlj.position.locate.common.dto.abnNoRecord.AbnNoRecordQueryParamDTO;
import com.hzlj.position.locate.common.model.AbnNoRecord;
import com.hzlj.position.locate.mapper.AbnNoRecordMapper;
import com.hzlj.sqjz.jz.common.constant.JzJoin;
import com.hzlj.sqjz.jz.common.model.JzJbxx;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * 定位分析-无记录表(AbnNoRecord)表操作类
 *
 * @author lifh
 * @date 2023-03-28 19:26:08
 */
@Repository
public class AbnNoRecordDao extends ServiceImpl<AbnNoRecordMapper, AbnNoRecord> {
    @Resource
    private AbnNoRecordMapper abnNoRecordMapper;


    /**
     * 查询列表：分页
     *
     * @param dto  查询条件
     * @param page 分页信息
     * @return 对象列表
     */
    public QueryPageResultDTO<AbnNoRecordListDTO> pageAbnNoRecord(AbnNoRecordQueryParamDTO dto, PageParamDTO page) {
        return QueryWrapperConverterPlus.of(abnNoRecordMapper)
                .innerJoin(JzJbxx.class, JzJoin.jz(AbnNoRecord::getJzId))
                .page(AbnNoRecordListDTO.class, dto, page);
    }


}

